
import lejos.nxt.LCD;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author nicolas
 */
public class TypeCase {
    
    public final static TypeCase MUR = new TypeCase("Mur",'M',false);
    public final static TypeCase PAROI = new TypeCase("Paroi",'P',false);
    public final static TypeCase OBSTACLE = new TypeCase("Obstacle",'O',false);
    public final static TypeCase INTERSECTION = new TypeCase("Intersection",'I',true);
    public final static TypeCase CHEMIN = new TypeCase("Chemin",'C',true);
    public final static TypeCase DEPART = new TypeCase("Départ",'D',true);
    public final static TypeCase ARRIVEE = new TypeCase("Arrivée",'A',true);
    public final static TypeCase UNDEFINED = new TypeCase("Undefined",'U',false);
    private char draw;
    private boolean est_franchissable;
    private String label;
    
    private TypeCase(String label, char draw, boolean est_franchissable){
        this.label=label;
        this.draw=draw;
        this.est_franchissable=est_franchissable;
    }
    public boolean estFranchissable(){
        return this.est_franchissable;
    }   

    public char toDraw(){
        return this.draw;
    }
}
